package com.bt7274.pojo.bo;

import lombok.Data;

@Data
public class UserQueryParam {
    private Integer pageNum = 1;      // 页码，默认第1页
    private Integer pageSize = 10;    // 每页大小，默认10条
    private String username;          // 用户名
    private String email;            // 邮箱
    private Integer permissionGroup; // 权限组
    private Integer status;          // 状态

    // 兼容前端传递的参数名
    public void setCurrent(Integer current) {
        this.pageNum = current;
    }

    public Integer getCurrent() {
        return this.pageNum;
    }

    public void setSize(Integer size) {
        this.pageSize = size;
    }

    public Integer getSize() {
        return this.pageSize;
    }
}